package xyz.robinbingo.cloud.consumer.aa;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Robin
 * @create 2018-01-09 16:42
 * @desc
 **/
@RestController
public class ConsumerController {

    @Autowired
    private ProducerService producerService;

    @RequestMapping("/hello/{name}")
    public String index(@PathVariable("name") String name) {
        return producerService.hello(name);
    }
}
